package co.edu.unal.unlbs.persistence.entities;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Time;


/**
 * The persistent class for the Hora_asignatura database table.
 * 
 */
@Entity
public class Hora_asignatura implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private Hora_asignaturaPK id;

	@Column(name="dia_horario")
	private String diaHorario;

	@Column(name="hora_horario")
	private Time horaHorario;

	//bi-directional many-to-one association to Asignatura
    @ManyToOne
	@JoinColumn(name="cod_asignatura")
	private Asignatura asignatura;

    public Hora_asignatura() {
    }

	public Hora_asignaturaPK getId() {
		return this.id;
	}

	public void setId(Hora_asignaturaPK id) {
		this.id = id;
	}
	
	public String getDiaHorario() {
		return this.diaHorario;
	}

	public void setDiaHorario(String diaHorario) {
		this.diaHorario = diaHorario;
	}

	public Time getHoraHorario() {
		return this.horaHorario;
	}

	public void setHoraHorario(Time horaHorario) {
		this.horaHorario = horaHorario;
	}

	public Asignatura getAsignatura() {
		return this.asignatura;
	}

	public void setAsignatura(Asignatura asignatura) {
		this.asignatura = asignatura;
	}
	
}